From: Florian Müllner Date: Wed, 27 Jul 2016 13:46:38 +0000 (+0200) Subject: global: Make timestamp parameter unsigned X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~775 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=af5e65fd7953a0e9e0d1fc4a75a26b103df9dbaf;p=gnome-shell.git global: Make timestamp parameter unsigned Negative values don't make sense to timestamps, and an unsigned timestamp as returned by shell_global_get_current_time() or Gdk/Clutter events may exceed the range of signed integers. https://bugzilla.gnome.org/show_bug.cgi?id=769216 --- diff --git a/src/shell-global.c b/src/shell-global.c index 2b6eb8f65..480b2fe4d 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -1583,7 +1583,7 @@ shell_global_get_current_time (ShellGlobal *global) */ GAppLaunchContext * shell_global_create_app_launch_context (ShellGlobal *global, - int timestamp, + guint32 timestamp, int workspace) { GdkAppLaunchContext *context; diff --git a/src/shell-global.h b/src/shell-global.h index c043f4714..47c441553 100644 --- a/src/shell-global.h +++ b/src/shell-global.h @@ -71,7 +71,7 @@ void shell_global_sync_pointer (ShellGlobal *global); GAppLaunchContext * shell_global_create_app_launch_context (ShellGlobal *global, - int timestamp, + guint32 timestamp, int workspace); void shell_global_play_theme_sound (ShellGlobal *global,